package nettyexample.sericalizer;

/**
 * @author zoush
 * @time 2024/12/18 10:23
 */
public interface Serializer {

    Serializer DEFAULT = new JSONSerializer();


    //序列化算法
    byte getSerializerAlogrithm();
    //转为二进制
    byte[] serialize(Object object);

    //反序列化
    <T> T deserialize(Class<T> clazz,byte[] bytes);
}
